# Contributor: Thomas Boerger <thomas@webhippie.de>
# Maintainer: Thomas Boerger <thomas@webhippie.de>
pkgname=py3-humanize
_pkgname=humanize
pkgver=4.0.0
pkgrel=0
pkgdesc="Python humanize functions"
options="!check" # No tests are actually run
url="https://pypi.python.org/pypi/humanize"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools py3-setuptools_scm"
checkdepends="py3-mock py3-freezegun py3-pytest"
source="$_pkgname-$pkgver.tar.gz::https://github.com/jmoiron/humanize/archive/$pkgver.tar.gz"
builddir="$srcdir"/$_pkgname-$pkgver

replaces=py-humanize # Backwards compatibility
provides=py-humanize=$pkgver-r$pkgrel # Backwards compatibility

build() {
	git init
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="
65479e8b484278e99718dd2ab0c047a44420615434889e6b5adadfee2bc14d00828add9b086ace7e4dfbbba471310779154d7eb4c1585b02a257058d44728b95  humanize-4.0.0.tar.gz
"
